package com.ma.chapter9;

import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.List;
import java.util.function.Supplier;

/**
 * @ClassName TestLambda
 * @Author: mayongqiang
 * @DATE 2022/3/26 23:18
 * @Description:
 */
@Slf4j(topic = "m.TestLambda")
public class TestLambda {
    public static void main(String[] args) {
        demo(ArrayList::new);
    }

    public static void demo(Supplier<List<String>> s){
        List<String> ts = s.get();
    }
}


